import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'

Vue.config.productionTip = false
Vue.config.silent = true;

App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif




// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import store from './store/index.js'
import http from './api/index.js'
import TabBar from "./components/TabBar.vue"
export function createApp() {
	const app = createSSRApp(App)
	app.component('tab-bar', TabBar)
	app.config.globalProperties.$http = http;
	app.use(store)
	return {
		app
	}
}
// #endif

// 检查用户是否已登录
function isLoggedIn() {
	// 根据你的实现方式来检查用户是否已登录，例如检查本地存储中是否有登录信息
	return !!uni.getStorageSync("token");
}